package com.k.kotlinmvvm

import android.content.Intent
import androidx.lifecycle.lifecycleScope
import com.k.kotlinmvvm.databinding.ActivityMainBinding
import com.k.lib_base.BaseActivity
import com.k.lib_view.TestActivity
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch

class MainActivity : BaseActivity<ActivityMainBinding>() {
    override fun layoutId(): Int {
        return R.layout.activity_main
    }

    override fun initView() {
        lifecycleScope.launch(Dispatchers.Main) {
            delay(3000)

            startActivity(Intent(this@MainActivity, TestActivity::class.java))
            finish()
        }
    }

}